<%--
  Created by IntelliJ IDEA.
  User: LuoQuan
  Date: 2017/11/14
  Time: 10:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>HttpMessageConverter Demo</title>
</head>
<body>
<div id="resp"></div>
<input type="button" onclick="req();" value="请求"/>
<script src="assets/js/jquery.js" type="text/javascript"></script>
<script>
    function req() {
        $.ajax({
            url: 'convert',
            data: '1-wangyunfei',
            type: 'POST',
            contentType: 'application/x-wisely',
            success: function (data) {
                $('#resp').html(data);
            }
        });
    }
</script>
</body>
</html>
